package corej.prj.mogu;

public class Mat {

    public static void main(String[] args) {
        int boy;
        int girl;
        int sumBoy;
        int sumGirl;

        Gene gene = new Gene();

        for (boy = 3; boy <= 3000; boy++) {
            for (girl = 3000; girl >= 3; girl--) {
                sumBoy = gene.getGeneSum(boy);
                if (sumBoy == girl) {
                    sumGirl = gene.getGeneSum(girl);
                    if (sumGirl == boy) {
                        System.out.println("Boy: " + boy + " Girl: " + girl);
                    }
                }
            }
        }

    }

}
